package com.wolf.service.impl;

import com.wolf.pojo.Wl_homefloor_style_pc;
import com.wolf.repository.Wl_homefloor_style_pcMapper;
import com.wolf.service.Wl_homefloor_style_pcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_homefloor_style_pcServiceImpl implements Wl_homefloor_style_pcService {

    @Autowired
    private Wl_homefloor_style_pcMapper wl_homefloor_style_pcMapper;

    public void setWl_homefloor_style_pcMapper(Wl_homefloor_style_pcMapper wl_homefloor_style_pcMapper) {
        this.wl_homefloor_style_pcMapper = wl_homefloor_style_pcMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_homefloor_style_pcMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_homefloor_style_pc record) {
        return wl_homefloor_style_pcMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_homefloor_style_pc record) {
        return wl_homefloor_style_pcMapper.insertSelective(record);
    }

    @Override
    public Wl_homefloor_style_pc selectByPrimaryKey(String id) {
        return wl_homefloor_style_pcMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_homefloor_style_pc record) {
        return wl_homefloor_style_pcMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_homefloor_style_pc record) {
        return wl_homefloor_style_pcMapper.updateByPrimaryKey(record);
    }

    /**
     * 查询所有楼层的数据
     * @return
     */
    @Override
    public List<Wl_homefloor_style_pc> getAll() {
        return wl_homefloor_style_pcMapper.getAll();
    }

    @Override
    public List<Wl_homefloor_style_pc> getSelective(String cateName, Integer status) {
        return wl_homefloor_style_pcMapper.getSelective(cateName,status);
    }
}
